package com.itheima.lambda;

public class Test1 {
    public static void main(String[] args) {
            goSwimming(()-> System.out.println("铁汁，我们去游泳吧"));
            goSwimming(()-> System.out.println("铁汁2，我们去游泳吧"));

    }

    /*
    使用接口的方法
     */
    public static void goSwimming(Swimming swimming){
        swimming.swim();
    }


}

interface Swimming{
    void swim();
}